
<!DOCTYPE html>
<html>
<!--Made By kailuosoft.com, TEL 171 9992 9517 -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>凯络科技后台管理系统 - 添加/编辑客户</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

     <link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/css/style.min862f.css?v=4.1.0" rel="stylesheet">
	<link href="__PUBLIC__/css/page.css" rel="stylesheet">
    <link href="__PUBLIC__/css/new.css" rel="stylesheet">
	<script src="__PUBLIC__/js/jquery.min63b9.js?v=2.1.4"></script>
    <script src="__PUBLIC__/js/plugins/layer/layer.min.js"></script>
    
   
	
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <if condition=" !empty($customerinfo)"> 
                           <h5>编辑客户</h5>
                        <else/>
                           <h5>添加客户</h5>
                        </if>
                        
                    </div>
                    <div class="ibox-content">
                        <form class="form-horizontal m-t" id="commentForm" action="{:U('customer_add')}" method="post">
							<input type='hidden' name="id" id='id' value='<if condition=" !empty($customerinfo)"> {$customerinfo.id} </if>' />
                            <input type='hidden' name="jumpurl" id='jumpurl' value='<if condition=" !empty($jumpurl)"> {$jumpurl} </if>' />
                            <div class="form-group">
                                <label class="col-sm-3 control-label">销售平台：</label>
                                <div class="col-sm-2">
                                    <select class="form-control input-sm" style='padding-top:0px'  name='t_title'>
                                     <option value='0'>请选择</option>
                                     <if condition=" $shop_list "> 
                                		<foreach name="shop_list" item="shop" >
                                         <option value='{$shop.shop_name}' <?php echo ($customerinfo['customer_group']==$shop['shop_name'])?'selected':'' ?> >{$shop.shop_name}</option>
                                        </foreach>
                                      </if>
                                    </select>
                                     &nbsp&nbsp  
                                  
                                 
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="col-sm-3 control-label">姓名：</label>
                                <div class="col-sm-2">
                                    <input id="receiver_name" name="receiver_name" minlength="2" type="text" class="form-control input-sm" required aria-required="true" placeholder='请输入姓名' autocomplete="off" {$customerinfo?"":""} onfocus="this.type='text'" value='<if condition=" !empty($customerinfo)"> {$customerinfo.name} </if>'>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">电话：</label>
                                <div class="col-sm-2">
                                    <input id="receiver_mobile" type="phone" class="form-control input-sm" name="receiver_mobile"  placeholder='请输入电话' value='<if condition=" !empty($customerinfo)"> {$customerinfo.phone} </if>'>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">省：</label>
                                <div class="col-sm-2">
                                    <input id="receiver_province" type="tetx" class="form-control input-sm" name="receiver_province"  placeholder='请输入省份' value='<if condition=" !empty($customerinfo)"> {$customerinfo.receiver_province} </if>'>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">市：</label>
                                <div class="col-sm-2">
                                    <input id="receiver_city" type="tetx" class="form-control input-sm" name="receiver_city"  placeholder='请输入城市' value='<if condition=" !empty($customerinfo)"> {$customerinfo.receiver_city} </if>'>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">区：</label>
                                <div class="col-sm-2">
                                    <input id="receiver_district" type="tetx" class="form-control input-sm" name="receiver_district"  placeholder='请输入城市' value='<if condition=" !empty($customerinfo)"> {$customerinfo.receiver_district} </if>'>
                                </div>
                            </div> 
                            <div class="form-group">
                                <label class="col-sm-3 control-label">地址：</label>
                                <div class="col-sm-3">
                                
                                    <textarea id="receiver_address" type="address" class="form-control input-sm" name="receiver_address" ><if condition=" !empty($customerinfo)"> {$customerinfo.address} </if></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">产品编码：</label> 
                                <div class="col-sm-2">
                                    <select class="form-control input-sm" style='padding-top:0px' name='goods'>
                                      <option value='0'>请选择</option>
                                       <if condition=" $goods_list "> 
                                		<foreach name="goods_list" item="goods" > 
                                       <option value="{$goods.id}" <?php echo ($customerinfo['goods_id']==$goods['id'])?'selected':'' ?> >{$goods.code}</option>
                                         </foreach>
                                      </if>
                                    </select>
                      
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">订单号：</label>
                                <div class="col-sm-2">
                                    <input id="tid" type="orderno" class="form-control input-sm" name="tid" placeholder='请输入订单号' value='<if condition=" !empty($customerinfo)"> {$customerinfo.order_no} </if>'>
                                    天猫，淘宝订单号
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">客户加入时间：</label>
                                <div class="col-sm-2">
                                    <input class="form-control input-sm" placeholder="" name='created' id='created' onClick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" value='<?php echo empty($customerinfo)?date("Y-m-d H:i:s"):$customerinfo.created ?>'>
                                     &nbsp&nbsp  
                                  
                                    
                                </div>
                            </div>
                          
                            <div class="form-group">
                                <label class="col-sm-3 control-label">
                                    <input type="radio" name="logistics_company" value="ems" <?php echo ($customerinfo['express']=='ems')?'checked':'' ?> >邮政
                                    <input type="radio" name="logistics_company" value="shunfeng" <?php echo ($customerinfo['logistics_company']=='shunfeng')?'checked':'' ?> >顺风
                                    <input type="radio" name="logistics_company" value="yuantong" <?php echo ($customerinfo['logistics_company']=='yuantong')?'checked':'' ?> >圆通 
                                    <input type="radio" name="logistics_company" value="shentong" <?php echo ($customerinfo['logistics_company']=='shentong')?'checked':'' ?> >申通  
                                    <input type="radio" name="logistics_company" value="kuaijie" <?php echo ($customerinfo['logistics_company']=='kuaijie')?'checked':'' ?> >快捷   
                                </label>
                                <div class="col-sm-9">
                                    <input type='text' class='form-control input-sm width200 inline' name='waybill_code' value='<if condition=" !empty($customerinfo)"> {$customerinfo.waybill_code} </if>' >单号 &nbsp&nbsp
                                    <input type='text' class='form-control input-sm width100 inline' name='post_fee' value='<if condition=" !empty($customerinfo)"> {$customerinfo.post_fee} </if>'>快递费
                                </div>
                            </div> 
                            
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-3">
                                	<input type="submit" value='提交'  class="btn btn-primary"  />
                                   <!--<span class="btn btn-primary" id='submit'>提交</span>-->
                                   <input type='reset' class="btn btn-primary">
                                   <if condition=" !empty($res4)"> 
                                    <a class="btn btn-primary" href='javascript:history.back(-1)'>返回</a>
                                   </if>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="__PUBLIC__/js/jquery.min63b9.js?v=2.1.4"></script>
	<script src="__PUBLIC__/js/bootstrap.min14ed.js?v=3.3.6"></script>
    <script src="__PUBLIC__/js/plugins/peity/jquery.peity.min.js"></script>
    <script src="__PUBLIC__/js/content.mine209.js?v=1.0.0"></script>
    <script src="__PUBLIC__/js/plugins/iCheck/icheck.min.js"></script>
    <script src="__PUBLIC__/js/demo/peity-demo.min.js"></script>
    
    <script src="__PUBLIC__/js/plugins/layer/laydate/laydate.js"></script>
    <script src="__PUBLIC__/js/plugins/jquery.tablesort.min.js"></script>
   


</body>
<!--Made By kailuosoft.com, TEL 171 9992 9517 -->
<script  type="text/javascript"  src="http://g.tbcdn.cn/sj/securesdk/0.0.3/securesdk_v2.js"  id="J_secure_sdk_v2" data-appkey="23416550"></script>
</html>
